def write1():
    fw = open("number.txt", "w")
    i = 1
    while i < 100:
        fw.write(str(i) + " ")
        i += 2
    fw.close()

def read1():
    fo = open("number.txt","r")
    s = fo.read()
    list = s.split(" ")
    # si=0
    # counter=1
    # newS = ""
    # while si <len(s) and counter <=10:
    #     if s[si]!= " ":
    #         newS += s[si]
    #     else:
    #         print(newS,end=" ")
    #         newS = ""
    #         counter+=1
    #     si+=1
    fo.close()

def write2():
    fww = open("number.txt", "ab")
    print(fww.tell())
    fww.seek(1)
    print(fww.tell())
    fww.write(str(222).encode())
    print(fww.tell())
    # i  = 2
    # while i<=100:
    #     fww.seek(1)
    #     fww.write(str(i).encode())
    #     i+=2
    # fww.close()
if __name__ == '__main__':
    write1()
    read1()
    # write2()
    # read1()